package gwt.trading.client.geometry;


/**
 * @author Iulian Costan (iulian.costan@gmail.com)
 *
 */
public class Rectangle {

	private Point origin;
	private Size size;
	
	public Rectangle(Point origin, Size size) {
		this.origin = origin;
		this.size = size;
	}

	public Point getOrigin() {
		return origin;
	}

	public Size getSize() {
		return size;
	}

	/**
	 * Constructs a <code>String</code> with all attributes
	 * in name = value format.
	 *
	 * @return a <code>String</code> representation 
	 * of this object.
	 */
	public String toString()
	{
	    final String TAB = "    ";
	    
	    String retValue = "";
	    
	    retValue = "Rectangle ( "
	        + super.toString() + TAB
	        + "origin = " + this.origin + TAB
	        + "size = " + this.size + TAB
	        + " )";
	    
	    return retValue;
	}
	
}
